<?php

use App\Job\QueueContract;
use App\Utils\Cache;

require __DIR__ . '/vendor/autoload.php';

require __DIR__ . '/src/boots.php';

//ioc('SWOOLE')->run();

//$response = ioc('request')->request('get', "http://www.biqukan.com");
//dd($response->getBody()->getContents());

//(new \App\Biquge\Noval())->getNewContent("detail.html");

//(new \App\Biquge\NovalJobHandler())->dispatch();
//ioc(\App\Elastic\Noval::class)->migrate();

//$job = serialize(new \App\Biquge\NovalJob('213'));
//
//Cache::getRedis()->zadd('test', $job);
//dd(Cache::getRedis()->zrem('test', $job));
//Cache::getRedis()->rpush('noval1', json_encode(['ta'=> 1, 'attempts'=> 1]));
//$r = Cache::getRedis()->eval(\App\Utils\LusScript::pop(), 2, 'noval_1', 'noval_1:reserved', time());
//$r = (new \App\Job\RedisQueue())->dequeue('noval1');
//dd($r);

//$ioc = new \App\Core\Ioc();
//$ioc->bind("t", "test");

//dd(ioc('ioc'));
ioc('processes')->run();

//ioc(\App\Bx\BxElastic::class)->migrate();







